package com.chendongyang.www.po;//用来存放充电站和充电口的信息；

public class chargingStation {
    private String chargeS;
    private  String  chargeB;

    public chargingStation(String chargeS, String chargeB) {
        this.chargeS = chargeS;
        this.chargeB = chargeB;
    }

    public chargingStation() {
    }

    public String getChargeS() {
        return chargeS;
    }

    public void setChargeS(String chargeS) {
        this.chargeS = chargeS;
    }

    public String getChargeB() {
        return chargeB;
    }

    public void setChargeB(String chargeB) {
        this.chargeB = chargeB;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof chargingStation)) return false;

        chargingStation that = (chargingStation) o;

        if (chargeS != null ? !chargeS.equals(that.chargeS) : that.chargeS != null) return false;
        return chargeB != null ? chargeB.equals(that.chargeB) : that.chargeB == null;
    }

    @Override
    public int hashCode() {
        int result = chargeS != null ? chargeS.hashCode() : 0;
        result = 31 * result + (chargeB != null ? chargeB.hashCode() : 0);
        return result;
    }


    @Override
    public String toString() {
        return "" +
                "充电口:" + chargeS +
                ", 充电位:" + chargeB
                ;
    }
}
